Skip to content

feat(paas): allow configurable Analytics Engine binding name#28

Merged
emilioacc merged 2 commits intomainfrom
emilio/atxp-1423-allow-configurable-analytics-engine-binding-name
Jan 28, 2026
Merged

feat(paas): allow configurable Analytics Engine binding name#28
emilioacc merged 2 commits intomainfrom
emilio/atxp-1423-allow-configurable-analytics-engine-binding-name

Conversation

@emilioacc
Copy link
Contributor

Summary

  • Update --enable-analytics flag to accept optional binding name parameter
  • When no name is specified, defaults to ANALYTICS binding
  • Dynamically update reserved env var names based on configured binding name
  • Update help text to document new [NAME] syntax

Usage

# Uses default 'ANALYTICS' binding
npx atxp paas worker deploy my-api --code ./worker.js --enable-analytics

# Uses custom 'MY_STATS' binding
npx atxp paas worker deploy my-api --code ./worker.js --enable-analytics MY_STATS

Test plan

  • Deploy worker with --enable-analytics - should use default ANALYTICS binding
  • Deploy worker with --enable-analytics MY_STATS - should use MY_STATS binding
  • Verify --env MY_STATS=foo fails when custom binding name is MY_STATS (reserved)
  • Verify env var named ANALYTICS is still blocked when using default binding

Closes ATXP-1423

🤖 Generated with Claude Code

emilioacc and others added 2 commits January 28, 2026 10:37
- Update --enable-analytics to accept optional binding name
- Default to 'ANALYTICS' when no name is specified
- Dynamically update reserved env var names based on binding name
- Update help text to document new [NAME] syntax

Closes ATXP-1423

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Test custom binding name passed to enable_analytics
- Test reserved env var validation with default ANALYTICS binding
- Test reserved env var validation with custom binding name
- Test that ANALYTICS env var is allowed when using different custom binding

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@emilioacc emilioacc merged commit 9845584 into main Jan 28, 2026
1 check passed
@emilioacc emilioacc deleted the emilio/atxp-1423-allow-configurable-analytics-engine-binding-name branch January 28, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants